package com.zhl.media.app.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import com.zhl.media.app.di.module.MyTaskModule;
import com.zhl.media.app.mvp.contract.MyTaskContract;

import com.jess.arms.di.scope.ActivityScope;
import com.zhl.media.app.mvp.ui.fragment.MyTaskFragment;


/**
 * ================================================
 * Description:
 * <p>
 * Created by MVPArmsTemplate on 01/29/2019 11:24
 * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
 * <a href="https://github.com/JessYanCoding">Follow me</a>
 * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
 * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
 * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
 * ================================================
 */
@ActivityScope
@Component(modules = MyTaskModule.class, dependencies = AppComponent.class)
public interface MyTaskComponent {

    void inject(MyTaskFragment fragment);

    @Component.Builder
    interface Builder {
        @BindsInstance
        MyTaskComponent.Builder view(MyTaskContract.View view);

        MyTaskComponent.Builder appComponent(AppComponent appComponent);

        MyTaskComponent build();
    }
}